home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of www.BestZips.com (Collector's Edition)
/
Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO
/
internet
/
mcoach20.zip
/
sample.sc_
/
sample.sc
Wrap
Text File
|
1996-09-11
|
2KB
|
71 lines
;Mailcoach Script sample
;----------------------------------------------------------------------
;Note: This script is compatible with the remote access script
;used by Windows 95. The following operators/commands are not supported.
;Operators: !, AND, OR
;Commands : GETIP, SET PORT XXXX, SET SCREEN XXXX, SET IPADDR,
; WHILE, DO, ENDWHILE
;----------------------------------------------------------------------
;Available system variables:
;$UserId Contains the login userID (Use if double login req)
;$Password Contains the login password (-"-)
;$UUCPLogin Contains the UUCP login name
;$UUCPPassword Contains the UUCP login password
;$RemoteHostname Name of the remote systems uucp name
;$LocalHostname Our local UUCP name
;
;$Success Set to TRUE if operation is successful
;$Failure Set to TRUE if operation is unsuccessful
;TRUE -1
;FALSE 0
;----------------------------------------------------------------------
Proc ;Beginning of procedure
Integer Retries=3 ;Integer variable Declaration
;Number of retries
Again: ;-- Send CR to clear up --
Transmit "^M" ;Send a "Carriage return"
Delay 1 ;Wait one second
Waitfor "ogin:" until 10 ;Wait for a part of "Login:". if
;not received within 10 seconds,
;the system variable $Failure
;is set and the program continues.
if $Failure then ;If $Failure is set...
goto Error ;... then goto label "Error"
endif
Transmit $Uucplogin+"^M" ;Transmit the system variable
;$Uucplogin (which contains the
;"Login name" you have setup)
;and a carriage return.
Waitfor "sword:" until 10
if $Failure then
goto Error
endif
Transmit $UucpPassword+"^M"
goto Done
;------ Retry 3-times ------
Error: beep
Retries=Retries-1 ;Decrease the Retry variable
if Retries>0 then ;If it have reached zero,
goto Again ;we jump to the label "Again"
endif
;Three Retries has been done.
halt ;Stop the script and quit this
;session.
;----- Now we are done! -----
done: ;When reached here, the UUCP
;takes over the rest of
;login negotiations.
Endproc ;End of procedure